Replace broken, (broken, Elliot, every single window blank on X) custom
authorOwen Taylor <otaylor@redhat.com>
Mon, 31 Jul 2000 20:48:38 +0000 (20:48 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 31 Jul 2000 20:48:38 +0000 (20:48 +0000)
Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>

* gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
(broken, Elliot, every single window blank on X) custom code with call
to gdk_window_is_viewable() which a) prevents code duplicate and
b) works.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gdk/gdkwindow.c

index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 20d28c74119d9cd27ef8d2022b90ab16afdb84b2..e58e000f0ae994cb0085f621f5e872b2ecf8ac09 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
+       (broken, Elliot, every single window blank on X) custom code with call
+       to gdk_window_is_viewable() which a) prevents code duplicate and
+       b) works. 
+
 2000-07-31  Elliot Lee  <sopwith@redhat.com>
 
        * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() macro to work.
index 590144a316882427046341e62f47ee3809bd0124..ae67813d8c38bc1ce7742010ecbd739d35aeb7fe 100644 (file)
@@ -212,7 +212,7 @@ AC_SUBST(STRIP_BEGIN)
 AC_SUBST(STRIP_END)
 
 # i18n stuff
-ALL_LINGUAS="ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no pl pt pt_BR ro ru sk sl sp sr sv tr uk wa zh_TW.Big5 zh_CN.GB2312"
+ALL_LINGUAS="ca cs da de el es et eu fi fr ga gl he hr hu it ja ko lt nl no pl pt pt_BR ro ru sk sl sp sr sv tr uk wa zh_TW.Big5 zh_CN.GB2312"
 AM_GTK_GNU_GETTEXT
 LIBS="$LIBS $INTLLIBS"
 
index fd3b068ae5625fb5a0e67175a4614437ef53da4f..d019b7c20657dc5f8c36c86513406c1a2fbaafb4 100644 (file)
@@ -1413,14 +1413,11 @@ static guint update_idle = 0;
 static void
 gdk_window_process_updates_internal (GdkWindow *window)
 {
-  GdkWindowObject *private = (GdkWindowObject *)window, *cur;
+  GdkWindowObject *private = (GdkWindowObject *)window;
   gboolean save_region = FALSE;
 
-  for(cur = private; cur; cur = cur->parent)
-    {
-      if(!cur->mapped)
-       return;
-    }
+  if (!gdk_window_is_viewable (window))
+    return;
 
   /* If an update got queued during update processing, we can get a
    * window in the update queue that has an empty update_area.